Eclipse Platform
Pre-release 3.0

org.eclipse.ui.progress
Interface IProgressService

All Known Subinterfaces:
IWorkbenchSiteProgressService

public interface IProgressService

The IProgressManager is an interface to the progress manager provided by the workbench. NOTE: This is experimental API and subject to change at any time.

Since:
3.0

Field Summary
static int LONG_OPERATION_MILLISECONDS
          The time at which the busy cursor will be replaced with a progress monitor.
 
Method Summary
 void busyCursorWhile(IRunnableWithProgress runnable)
          Set the cursor to busy and run runnable within the UI Thread.
 IStatus requestInUI(UIJob job, String message)
          Block the current thread until UIJob is served.
 

Field Detail

LONG_OPERATION_MILLISECONDS

public static final int LONG_OPERATION_MILLISECONDS
The time at which the busy cursor will be replaced with a progress monitor.

See Also:
Constant Field Values
Method Detail

requestInUI

public IStatus requestInUI(UIJob job,
                           String message)
Block the current thread until UIJob is served. The message is used to announce to the user a pending UI Job. Note: This is experimental API and subject to change at any time . *

Parameters:
job - UIJob
message - The message that informs the user of the waiting UI job.
Returns:
IStatus
Throws:
IllegalThreadStateException - if this is called from the UIThread as we do not want to block the UIThread to make a request in the UIThread.
Since:
3.0

busyCursorWhile

public void busyCursorWhile(IRunnableWithProgress runnable)
                     throws InvocationTargetException,
                            InterruptedException
Set the cursor to busy and run runnable within the UI Thread. After the cursor has been running for LONG_OPERATION_MILLISECONDS replace it with a ProgressMonitorDialog so that the user may cancel.

Parameters:
runnable -
Throws:
InvocationTargetException
InterruptedException

Eclipse Platform
Pre-release 3.0

Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.